using System;
using System.Collections.Generic;

namespace ConsoleApplication2.Models
{
    public partial class Vend
    {
        public Vend()
        {
            this.Aps = new List<Ap>();
            this.Apbatches = new List<Apbatch>();
            this.Apdets = new List<Apdet>();
            this.Apmemoes = new List<Apmemo>();
            this.ARC_Apdet = new List<ARC_Apdet>();
            this.OE_ORDER = new List<OE_ORDER>();
            this.PSDetJobs = new List<PSDetJob>();
            this.PT_Session = new List<PT_Session>();
            this.TransferDets = new List<TransferDet>();
        }

        public string ID { get; set; }
        public string VENDSRH { get; set; }
        public string COMPANY { get; set; }
        public string ADDR1 { get; set; }
        public string ADDR2 { get; set; }
        public string CITY { get; set; }
        public string STATE { get; set; }
        public string ZIP { get; set; }
        public string FEDID { get; set; }
        public string CONTACT { get; set; }
        public string PHONE { get; set; }
        public Nullable<bool> ISSUE1099 { get; set; }
        public Nullable<bool> ONETIME { get; set; }
        public string FAX { get; set; }
        public string ACCT { get; set; }
        public Nullable<short> CURRENCY { get; set; }
        public string APACCT { get; set; }
        public Nullable<bool> OUTPATIENT { get; set; }
        public string DESC { get; set; }
        public short TYPE { get; set; }
        public Nullable<short> PYMT_TERMS { get; set; }
        public Nullable<short> SPECIALTY { get; set; }
        public string LICENSE_NO { get; set; }
        public Nullable<byte> STAFFTYPE { get; set; }
        public string File_Primary_Key { get; set; }
        public Nullable<System.DateTime> VendDate { get; set; }
        public bool ISMASTER { get; set; }
        public string sunfrom1 { get; set; }
        public string sunto1 { get; set; }
        public string sunfrom2 { get; set; }
        public string sunto2 { get; set; }
        public string sunfrom3 { get; set; }
        public string sunto3 { get; set; }
        public string monfrom1 { get; set; }
        public string monto1 { get; set; }
        public string monfrom2 { get; set; }
        public string monto2 { get; set; }
        public string monfrom3 { get; set; }
        public string monto3 { get; set; }
        public string tuefrom1 { get; set; }
        public string tueto1 { get; set; }
        public string tuefrom2 { get; set; }
        public string tueto2 { get; set; }
        public string tuefrom3 { get; set; }
        public string tueto3 { get; set; }
        public string wedfrom1 { get; set; }
        public string wedto1 { get; set; }
        public string wedfrom2 { get; set; }
        public string wedto2 { get; set; }
        public string wedfrom3 { get; set; }
        public string wedto3 { get; set; }
        public string thufrom1 { get; set; }
        public string thuto1 { get; set; }
        public string thufrom2 { get; set; }
        public string thuto2 { get; set; }
        public string thufrom3 { get; set; }
        public string thuto3 { get; set; }
        public string frifrom1 { get; set; }
        public string frito1 { get; set; }
        public string frifrom2 { get; set; }
        public string frito2 { get; set; }
        public string frifrom3 { get; set; }
        public string frito3 { get; set; }
        public string satfrom1 { get; set; }
        public string satto1 { get; set; }
        public string satfrom2 { get; set; }
        public string satto2 { get; set; }
        public string satfrom3 { get; set; }
        public string satto3 { get; set; }
        public string notes { get; set; }
        public Nullable<System.DateTime> CreationDate { get; set; }
        public double ServicePerc { get; set; }
        public Nullable<System.DateTime> Lastupdate { get; set; }
        public string code { get; set; }
        public string ANumber { get; set; }
        public bool enablevat { get; set; }
        public Nullable<short> CSTCTRID { get; set; }
        public string under_collection_acct { get; set; }
        public Nullable<short> secondspeciality { get; set; }
        public Nullable<int> IID { get; set; }
        public Nullable<int> MasterID { get; set; }
        public Nullable<short> FeesPlan { get; set; }
        public Nullable<byte> TPI { get; set; }
        public string UID { get; set; }
        public Nullable<bool> ExternalParty { get; set; }
        public Nullable<int> RefFeesplan { get; set; }
        public Nullable<decimal> MonthlyTarget { get; set; }
        public Nullable<bool> VND_Physio { get; set; }
        public Nullable<bool> Vend_AcctAssigned { get; set; }
        public string Vend_ItemPrefix { get; set; }
        public string Vend_Reference { get; set; }
        public string Vend_RecordType { get; set; }
        public string Vend_RecordID { get; set; }
        public Nullable<int> Vnd_Department { get; set; }
        public virtual Acct Acct1 { get; set; }
        public virtual Acct Acct2 { get; set; }
        public virtual Acct Acct3 { get; set; }
        public virtual ICollection<Ap> Aps { get; set; }
        public virtual ICollection<Apbatch> Apbatches { get; set; }
        public virtual ICollection<Apdet> Apdets { get; set; }
        public virtual ICollection<Apmemo> Apmemoes { get; set; }
        public virtual ICollection<ARC_Apdet> ARC_Apdet { get; set; }
        public virtual currency currency1 { get; set; }
        public virtual ICollection<OE_ORDER> OE_ORDER { get; set; }
        public virtual ICollection<PSDetJob> PSDetJobs { get; set; }
        public virtual ICollection<PT_Session> PT_Session { get; set; }
        public virtual Specialty Specialty1 { get; set; }
        public virtual ICollection<TransferDet> TransferDets { get; set; }
    }
}
